package com.letao.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 内置种类表对应类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("base_category")
public class BaseCategory {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 父种类Id
     */
    private Integer parentId;
    /**
     * 种类名称
     */
    private String name;
    /**
     * 种类等级
     */
    private Integer level;

    private String picture;

    private String parentName;
}
